package game.ecosysteme;

import java.awt.Point;
import java.io.BufferedReader;
import java.io.InputStreamReader;

import org.apache.log4j.Logger;
import org.apache.log4j.xml.DOMConfigurator;

public class Test {

	private final static Logger log = Logger.getLogger(Test.class);

	public static void main(String[] args) {

		DOMConfigurator.configure("log4j.xml");

		Planete p = new Planete();
		p.creerMonde();
		// p.afficherMonde();

		Vie va = new Vie(Vie.CLAN_A);
		Vie vb = new Vie(Vie.CLAN_A);
		va.setEnvironnement(p, new Point(0, 0));
		vb.setEnvironnement(p, new Point(1, 0));
		// log.info("|" + v + "|");

		while (true) {
			p.afficherMonde();
			BufferedReader entree = new BufferedReader(new InputStreamReader(
					System.in));
			try {
				entree.readLine();
			} catch (Exception e) {
			}
			p.desAnneesPassent(10);
		}
	}
}
